home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / language / embedded / 68hc11 / smallc11.arc / README < prev    next >
Text File  |  1988-07-04  |  3KB  |  96 lines

  1.  
  2.  
  3.         Smallc V2 (hc11 code generator)
  4.  
  5.     This archive contains the source code used to generate the
  6.     archive "smallc11.arc" , also on the freeware line. This has
  7.     been much abused in order to make it WORK using the MIX-C
  8.     compiler. It is in the beta site stage & should be used with
  9.     CARE. As I have had numerous requests for this source, here
  10.     it is in all it's 'glory'. It seems unlikely that I'll be
  11.     able to do any cleanup [bootleg project] for the rest of
  12.     1987. You are free to use for yourself
  13.     & modify, but should give the original author [J.E. Hendrix]
  14.     due credit for his unselfish donation to the public domain.
  15.     As with any public domain, pls don't copy for commericial
  16.     purposes - we want to encourage more folks to donate...
  17.             John Dumas    July 16 1987
  18.  
  19.  
  20.         Changes to Motorola Small-C Version
  21.  
  22.     Being in the middle of a mid-size project, i encountered a problem
  23.     with the original version of this little cross-compiler.
  24.     Compiling a c-source of about 400 lines of code, my pc ran into
  25.     nowhere... redirecting the output to stdout showed two error
  26.     messages:
  27.         Runtime Error 98: Not Enough Parameters        and
  28.         Runtime Error 81: Out of Stack
  29.  
  30.     A call to John Dumas didn't solve the problem because he hadn't
  31.     the time to do any further work on the compiler.
  32.     So, i decided to make the source compilable with the Borland
  33.     Turbo-C Compiler ( Version 1.5 ).
  34.  
  35.         It was done the quick-and-dirty way, because i wanted to work on
  36.     my project, not on the compiler....
  37.     The changes are:
  38.         - changing the file descriptors "input","input2",
  39.           "output" and "listfp" from int to FILE *.
  40.         - changing variables and function named "const"
  41.           to "const1" (ansi c!).
  42.         - changing linelength to 128 chars
  43.         - changing function "duanefgets()", see CC5.C
  44.     The sources are to be compiled using the Turbo-C small memory
  45.     model. You get masses of warnings, but that's perfectly normal...
  46.  
  47.     Files added :
  48.         TCCONFIG.TC - Turbo-C configuration file
  49.         SC11.PRJ    - Project file for Turbo-C
  50.         SC11.EXE    - new compiler
  51.  
  52.     A side effect of this is, that the new compiler is much faster
  53.     than the first version and much smaller.
  54.  
  55.     If you have any troubles compiling the compiler, don't hesitate
  56.     to call me.
  57.     If someone enhances or further modifies the compiler, please
  58.     tell me.
  59.  
  60.         Hellmuth Michaelis
  61.         c/o HCS Hanseatischer Computerservice GmbH
  62.         Oldesloer Strasse 97-99
  63.         D-2000 Hamburg 61
  64.         W-Germany
  65.  
  66.         Tel: 040 / 55 010 75
  67.  
  68.  
  69.     Further modifications to Small-C Compiler for 68HC11
  70.     ----------------------------------------------------
  71.  
  72.         july, 4, 1988
  73.  
  74.     - standard include file syntax ( either "file" or <file> )
  75.  
  76.     - compiler recognizes now hexadecimal numbers in the form "0x1234"
  77.  
  78.     - compiler gives error messages to stdout
  79.  
  80.     - compiler recognizes now command line options:
  81.         "-c"     = include the c-source code as comments in the output file
  82.         "-bxxxx" = start output label numbering with label "ccxxxx"
  83.         "-m"     = monitor compiler activity by printing first function line
  84.         "-?"     = give help on command line options
  85.  
  86.         - added file "chcmpd.c/exe" to change generated opcode "cmpd" to "cpd"
  87.         for assembling resulting output file with richard soya's
  88.         absolute 68hc11 assembler
  89.  
  90.     being at the end of my project, i found the compiler to produce bug-free
  91.     code ( compiling a 5000 lines c-code program ).
  92.  
  93.     i do not use the opt11 code optimizer because it seems to produce bugs.
  94.  
  95.         H. Michaelis
  96.